#include<bits/stdc++.h>
#define INF 0x3f3f3f3f
using namespace std;
typedef long long LL;
typedef double db;
inline int read()
{
	int x=0,f=1;
	char ch=getchar();
	while(ch<'0'||ch>'9') { if(ch=='-')f=-1; ch=getchar(); }
	while(ch>='0'&&ch<='9') { x=(x<<1)+(x<<3)+ch-'0'; ch=getchar(); }
	return x*f;
}
int n,a[300],f[300],tot;
int main()
{
#ifndef ONLINE_JUDGE
	freopen("in.in","r",stdin);
	freopen("out.out","w",stdout);
#endif
	n=read();
	int k=sqrt(n);
	for(int i=1;i<=k;++i)
	{
		if(n%i==0)
		{
			a[tot]=i;f[tot++]=1;
			if(n==i*i)continue;
			a[tot]=n/i;f[tot++]=1;
		}
	}
	--tot;
	sort(a+1,a+1+tot);
	for(int i=1;i<=tot;++i)
		for(int j=1;j<i;++j)
			if(a[i]%a[j]==0)f[i]+=f[j];
	printf("%d\n",f[tot]);
	return 0;
}
